﻿using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;

namespace Mvc.Validation.Validators
{
    public abstract class BaseValueValidatorAttribute : ValueValidatorAttribute
    {
        /// <summary>
        /// The JavaScript function that performs the client-side validation.
        /// </summary>
        public string ClientFunctionName { get; set; }

        /// <summary>
        /// Message to be displayed when validation fails.
        /// </summary>
        public abstract string FormattedMessageTemplate { get; }
    }
}
